package o;

import android.content.Context;
import android.os.Bundle;
import com.huawei.appgallery.assistantdock.buoydock.uikit.remote.RemoteBuoyCallback;
import com.huawei.appgallery.assistantdock.buoydock.uikit.remote.RemoteBuoyRequest;
import com.huawei.gamebox.plugin.gameservice.bean.GameInfo;
import com.huawei.hmf.orb.exception.ConnectRemoteException;
import o.fho.b;

class bgt$3 implements b {
    final /* synthetic */ bgt ˊ;
    final /* synthetic */ Context ˋ;
    final /* synthetic */ GameInfo ˎ;
    final /* synthetic */ Bundle ˏ;
    final /* synthetic */ String ॱ;

    bgt$3(bgt o_bgt, String str, Bundle bundle, GameInfo gameInfo, Context context) {
        this.ˊ = o_bgt;
        this.ॱ = str;
        this.ˏ = bundle;
        this.ˎ = gameInfo;
        this.ˋ = context;
    }

    public void ˏ(ffd o_ffd, ConnectRemoteException connectRemoteException) {
        if (connectRemoteException != null) {
            Logger.ˋ("RemoteBuoyWindowManager", "connect gamebox exception", connectRemoteException);
            return;
        }
        fhz ˋ = o_ffd.ˋ("remotebuoymodule");
        if (ˋ == null) {
            Logger.e("RemoteBuoyWindowManager", "Module is null");
            return;
        }
        bgp o_bgp = (bgp) ˋ.ॱ(bgp.class);
        if (o_bgp == null) {
            Logger.e("RemoteBuoyWindowManager", "remoteBuoy is null");
        } else {
            o_bgp.ˏ(this.ॱ, new RemoteBuoyRequest(this.ˏ, bgt.ˎ(this.ˊ)), this.ˎ).ˏ(new fke<RemoteBuoyCallback>(this) {
                final /* synthetic */ bgt$3 ॱ;

                {
                    this.ॱ = r1;
                }

                public /* synthetic */ void ॱ(Object obj) {
                    ˊ((RemoteBuoyCallback) obj);
                }

                public void ˎ(fkg o_fkg) {
                }

                public void ˊ(RemoteBuoyCallback remoteBuoyCallback) {
                    bgt.ˎ(this.ॱ.ˊ, this.ॱ.ˋ, remoteBuoyCallback);
                }

                public void ˊ(Exception exception) {
                    this.ॱ.ˊ.ˎ();
                }

                public void ॱ() {
                    this.ॱ.ˊ.ˎ();
                }
            });
        }
    }
}
